package com.yongqi.duocai.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 夏亮辉
 * @since 2021-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_order")
@ApiModel(value="Rder对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "地址信息id")
    private Integer addressId;

    @ApiModelProperty(value = "订单详情id")
    private Integer sellInfoId;

    @ApiModelProperty(value = "订单编号")
    private String no;

    @ApiModelProperty(value = "总计数量")
    private Integer sumCount;

    @ApiModelProperty(value = "总计金额")
    private BigDecimal total;

    @ApiModelProperty(value = "支付时间")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "退款信息id")
    private Integer refundId;

    @ApiModelProperty(value = "状态 （1- 待付款， 2-待发货， 3-待收货， 4-已确认）")
    private Integer state;

    @ApiModelProperty(value = "快递信息id")
    private Integer expressId;

    @ApiModelProperty(value = "是否开票")
    @TableField("is_make")
    private Boolean make;

    @ApiModelProperty(value = "客户是否需要开票")
    @TableField("is_make_out_state")
    private Boolean makeOutState;

    @ApiModelProperty(value = "发票抬头")
    private Integer invoiceId;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;


}
